package com.yudaob2b.elong.constant;

/**
 * @author Kidd.Tan
 * @email 298023780@qq.com
 * @date 7/14/18 9:28 PM
 */
public class RedisConstant {

    /**
     * 保存库存增量lastid在redis的key
     */
    public static final String REDIS_INCR_INV_LASTID_KEY = "incr_inv_lastid";

    /**
     * 保存产品价格增量lastid在redis的key
     */
    public static final String REDIS_INCR_RATE_LASTID_KEY = "incr_rate_lastid";

    /**
     * 保存库存增量变化时间在redis的key
     */
    public static final String REDIS_INCR_INV_UPDATE_TIME_KEY = "incr_inv_update_time";

    /**
     * 保存价格增量变化时间在redis的key
     */
    public static final String REDIS_INCR_RATE_UPDATE_TIME_KEY = "incr_rate_update_time";

    /**
     * 保存/获取库存增量数据的key
     */
    public static final String REDIS_INCR_INV_L_KEY = "incr_inv_{lastid}";

    /**
     * 待处理库存增量数据的LASTID的key
     */
    public static final String REDIS_INCR_INV_UPDATE_LASTID_LIST_KEY = "incr_inv_update_lastid_list";

    /**
     * 获取待更新lastId列表的redis锁的key
     */
    public static final String REDIS_INCR_INV_GET_UPDATE_LASTID_LIST_LOCK_KEY = "incr_inv_get_update_lastid_list_lock";

    /**
     * 缓存酒店id到redis的队列的key
     */

    public static final String REDIS_HOTEL_ID_LIST_KEY = "hotel_id_list";

    /**
     * 缓存价格列表信息的key
     */
    public static final String REDIS_CACHE_RATE_KEY = "cache_rate_{hotelId}";

    /**
     * 国内酒店库存增量同步topic
     */
    public static final String REDIS_TOPIC_INCR_INVENTORY = "topic_incr_inventory";

    /**
     * 保存产品详情增量lastid在redis的key
     */
    public static final String REDIS_INCR_RP_LASTID_KEY = "incr_rp_lastid";

    /**
     * 保存产品详情增量变化时间在redis的key
     */
    public static final String REDIS_INCR_RP_UPDATE_TIME_KEY = "incr_rp_update_time";


}
